/*package geeks.dao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collection;

import geeks.excepcion.DAOExcepcion;
import geeks.modelo.Idea;
import geeks.modelo.Persona;
import geeks.modelo.Reunion;
import geeks.util.ConexionBD;

public class ReunionDAO extends BaseDao {

	public Collection<Idea> listarxCI(int p) throws DAOExcepcion {
		Collection<Idea> c = new ArrayList<Idea>();
		Connection con = null;
		PreparedStatement stmt = null;
		ResultSet rs = null;
		try {
			con = ConexionBD.obtenerConexion();
			String query ="Select a.idReunion,a.idIdea, a.Observaciones, a.Calificacion,a.Fecha, from idea a inner join persona b on a.idProfesor=b.idPersona inner join Idea c on c.idIdea=b.idIdea where b.idIdea=(select idIdea from persona where idPersona=?)";

			stmt = con.prepareStatement(query);
			stmt.setInt(1, p);
			rs = stmt.executeQuery();
			while (rs.next()) {
				Idea io = new Idea();
				Reunion preunion = new Reunion();
				pidea.setIdIdea(rs.getInt("a.idIdea"));
				//pprofesor.setIdPersona(rs.getInt("a.idProfesor"));
				
				io.setCodigo(rs.getInt("a.idIdea"));
				io.setoReunion(preunion);
				io.setoProfesor(pprofesor);
				io.setObservaciones(rs.getString("a.observaciones"));
				io.setCalificacion(rs.getString("a.Calificacion"));
				io.setFecha(rs.getTimestamp("a.fecha"));
				c.add(io);
			}

		} catch (SQLException e) {
			System.err.println(e.getMessage());
			throw new DAOExcepcion(e.getMessage());
		} finally {
			this.cerrarResultSet(rs);
			this.cerrarStatement(stmt);
			this.cerrarConexion(con);
		}
		return c;
	}
	
	


}
*/